import turtle
# 绘制旋转陀螺
def draw():
    turtle.clear()
    turtle.goto(0,0)
    turtle.forward(80)
    turtle.dot(40, 'red')
    turtle.backward(80)
    turtle.left(120)
    turtle.forward(80)
    turtle.dot(40, 'blue')
    turtle.backward(80)
    turtle.left(120)
    turtle.forward(80)
    turtle.dot(40,"green")
    turtle.backward(80)
    turtle.left(120)
    turtle.left(5)
    turtle.ontimer(draw, 200)


turtle.tracer(False)
draw()
turtle.done()